package com.javaweb.admin.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.javaweb.admin.entity.NCGeneralinB;
import com.javaweb.admin.entity.NCGeneralinH;
import com.javaweb.admin.entity.NCGeneraloutB;
import com.javaweb.admin.entity.NCGeneraloutH;
import com.javaweb.admin.query.NCGeneralOutQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface NCGeneralinHMapper {
    IPage<NCGeneralinH> getNCGeneralInList(IPage<NCGeneralinH> page, @Param("req") NCGeneralOutQuery req);

    @Select("select * from v_nc_generalin_b where cgeneralhid=#{cgeneralhid} order by materialcode")
    List<NCGeneralinB> getNCGeneralinDetail(String cgeneralhid);

    @Select("select distinct billtypename from v_nc_generalin_b order by billtypename")
    List<String> getBillTypeList();
}
